import { ref } from 'vue'
import request from '@/utils/request.js'

export const select = (file) => {
   return request.post('/upload', file)
}


export const selectAllUser = (classId) => {
   return request.get('/excel/getAllUserByClassId?classId=' + classId)
}

export const deleteUser = (userId) => {
   return request.delete("/excel/deleteUser?userId=" + userId)
}

export const getClassInfo =(classId)=>{
   return request.get("/classUserPrc/getClass?classId="+classId)
}